//
//  SNSearchSectionHeaderView.m
//  ZhuoxinAgriculture
//
//  Created by stone on 16/12/16.
//  Copyright © 2016年 stone. All rights reserved.
//

#import "SNSearchSectionHeaderView.h"
#import "Masonry.h"
@interface SNSearchSectionHeaderView()
/** titleLabel */
@property (weak, nonatomic) UILabel * titleLabel;
@end
@implementation SNSearchSectionHeaderView
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {

        
        UILabel * titleLabel = ({
            UILabel * label = [[UILabel alloc] init];
            /** GPU 优化 */
//            label.opaque = YES;
//            label.backgroundColor = [UIColor whiteColor];
//            label.layer.masksToBounds = YES;
            //------------------------------
            label.numberOfLines = 0;
            label.textColor = [UIColor blackColor];
            label.textAlignment = NSTextAlignmentCenter;
            label.text = @"历史搜索";
            label.font = [UIFont systemFontOfSize:13];
            
            [self addSubview:label];
            
            [label mas_makeConstraints:^(MASConstraintMaker * make) {
                make.left.mas_equalTo(self.mas_left).offset(25);
                make.bottom.mas_equalTo(self.mas_bottom).offset(0);
            }];
            label;
        });
        self.titleLabel = titleLabel;
    }
    return self;
}
@end
